package com.ruoyi.background.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 队伍排行榜对象 app_rank_team
 *
 * @author susu
 * @date 2024-09-04
 */
public class AppRankTeam extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private Long id;

    /**
     * 队伍id
     */
    @Excel(name = "队伍id")
    private Long teamId;

    /**
     * 队伍名称
     */
    @Excel(name = "队伍名称")
    private String teamName;

    /**
     * 队伍排名
     */
    @Excel(name = "队伍排名")
    private Integer rank;

    /**
     * 累计天数
     */
    @Excel(name = "累计天数")
    private Integer daySum;

    /**
     * 累计分数
     */
    @Excel(name = "累计分数")
    private Long gradeSum;

    /**
     * 累计步数
     */
    @Excel(name = "累计步数")
    private Long stepSum;

    /**
     * 记录日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "记录日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date rowDate;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setTeamId(Long teamId) {
        this.teamId = teamId;
    }

    public Long getTeamId() {
        return teamId;
    }

    public void setTeamName(String teamName) {
        this.teamName = teamName;
    }

    public String getTeamName() {
        return teamName;
    }

    public void setRank(Integer rank) {
        this.rank = rank;
    }

    public Integer getRank() {
        return rank;
    }

    public void setDaySum(Integer daySum) {
        this.daySum = daySum;
    }

    public Integer getDaySum() {
        return daySum;
    }

    public void setGradeSum(Long gradeSum) {
        this.gradeSum = gradeSum;
    }

    public Long getGradeSum() {
        return gradeSum;
    }

    public void setStepSum(Long stepSum) {
        this.stepSum = stepSum;
    }

    public Long getStepSum() {
        return stepSum;
    }

    public void setRowDate(Date rowDate) {
        this.rowDate = rowDate;
    }

    public Date getRowDate() {
        return rowDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("teamId", getTeamId())
                .append("teamName", getTeamName())
                .append("rank", getRank())
                .append("daySum", getDaySum())
                .append("gradeSum", getGradeSum())
                .append("stepSum", getStepSum())
                .append("createTime", getCreateTime())
                .append("rowDate", getRowDate())
                .toString();
    }
}
